﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace DcsGauges.Config
{
    class ServerConfig : ConfigurationElement
    {
        public const string HostKey                     = "host";
        public const string PortKey                     = "port";

        [ConfigurationProperty(HostKey, IsRequired = true, DefaultValue = "localhost")]
        public string Host
        {
            get { return (string)this[HostKey]; }
            set { this[HostKey] = value; }
        }


        [ConfigurationProperty(PortKey, IsRequired = true, DefaultValue = 30333)]
        public int Port
        {
            get { return (int)this[PortKey]; }
            set { this[PortKey] = value; }
        }
    }
}
